package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户凭证表
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@TableName("T_USER_CREDENTIAL")
@KeySequence("mybatisPlusKeyGenerator")
public class UserCredential implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id 唯一标识
     */
    @TableId(type=IdType.INPUT)
    private Long id;

    /**
     * 凭证类型
     * 1用户别名
     * 2手机号
     * 3账号
     * 4客户号
     */
    @TableField("CREDENTIAL_TYPE")
    private String credentialType;

    /**
     * 凭证 凭证
     */
    @TableField("CREDENTIAL")
    private String credential;

    /**
     * 账号唯一标识
     */
    @TableField("ACCOUNT_ID")
    private Long accountId;

    /**
     * 凭证状态 凭证状态，0，开启，1关闭
     */
    @TableField("CREDENTIAL_STATUS")
    private String credentialStatus;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    private Date updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCredentialType() {
        return credentialType;
    }

    public void setCredentialType(String credentialType) {
        this.credentialType = credentialType;
    }

    public String getCredential() {
        return credential;
    }

    public void setCredential(String credential) {
        this.credential = credential;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public String getCredentialStatus() {
        return credentialStatus;
    }

    public void setCredentialStatus(String credentialStatus) {
        this.credentialStatus = credentialStatus;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "UserCredential{" +
        "id=" + id +
        ", credentialType=" + credentialType +
        ", credential=" + credential +
        ", accountId=" + accountId +
        ", credentialStatus=" + credentialStatus +
        ", createdTime=" + createdTime +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
